package com.pingan.haofang.searchcloud.web.index.vo.example;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * RPC全量导入参数示例
 *
 * @author zhangbi617
 * @date 03/05/2017
 */
@ApiModel(description = "RPC全量导入参数示例")
public class FullImportRpcRequestParam {

    @ApiModelProperty(value = "当前页（平台传入）", example = "1")
    private int pageNo;

    @ApiModelProperty(value = "每页抓取记录数（接入方配置，平台传入）", example = "1000")
    private int pageSize;

    @ApiModelProperty(value = "数据变化时间,时间戳（平台传入，接入方返回该时间之前的数据）", example = "1490254330")
    private int before;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @ApiModelProperty(value = "上次查询的MaxId", example = "34")
    private Long lastMaxId;

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getBefore() {
        return before;
    }

    public void setBefore(int before) {
        this.before = before;
    }

    public Long getLastMaxId() {
        return lastMaxId;
    }

    public void setLastMaxId(Long lastMaxId) {
        this.lastMaxId = lastMaxId;
    }

    @Override
    public String toString() {
        return "FullImportRpcRequestParam{" +
                "pageNo=" + pageNo +
                ", pageSize=" + pageSize +
                ", before=" + before +
                '}';
    }
}
